#ifndef LOG_H
#define LOG_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QLabel>

namespace Ui {
class Log;
}

class Log : public QMainWindow
{
    Q_OBJECT

public:
    explicit Log(QWidget *parent = 0);
    void show_Pag(); 
    void recv_Msg(); 
    void login(); 
    void slot_register(); 
    ~Log();

signals:
    void login_ok(QString msg, QTcpSocket *cfd); 
    void disconnect_ok(); 

private:
    QLabel *status; 
    QTcpSocket *cfd; 
    Ui::Log *ui;
    QString uid; 
    QString passwd; 
    QString user_name; 
    QString rpasswd; 
    QString rpasswd2; 
    QString ip = "120.77.179.157"; 
    unsigned short port = 7777; 
};

#endif // LOG_H
